import 'package:flutter/material.dart';
import 'package:flutter_html/flutter_html.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';
import 'package:get/get_state_manager/src/simple/get_state.dart';
import 'package:kkhousekeep/page/public/html_page_controller.dart';

import '../../widget/custom_app_bar.dart';

class HtmlPage extends StatelessWidget {
  const HtmlPage({super.key});

  @override
  Widget build(BuildContext context) {
    return GetBuilder<HtmlPageController>(
        init: HtmlPageController(),
        builder: (controller) => Scaffold(
              appBar: CustomAppBar(""),
              body: Container(
                  padding: EdgeInsets.only(top: 16.h),
                  color: const Color(0xFFf4f5f6),
                  child: SafeArea(
                    left: false,
                    right: false,
                    child: Container(
                      constraints: const BoxConstraints.expand(),
                      color: Colors.white,
                      child: SingleChildScrollView(
                        child: Html(
                          data: """
                <div><h1>Hello World</h1></div>
                """,
                        ),
                      ),
                    ),
                  )),
            ));
  }
}
